/*
 * RadioGroup.h
 *
 *  Created on: 2010-12-16
 *      Author: wenjian
 */

#ifndef RADIOGROUP_H_
#define RADIOGROUP_H_

#include "../../commons.h"
#include <event/EventListener.h>

namespace S {
  class RadioButton;
  /**
   * RadioButton 组
   */
  class RadioGroup : public Thk::EventListener {
    public:
      RadioGroup();
      virtual ~RadioGroup();

      void addRadio(RadioButton* rb);

      bool handle(const Thk::Event* e);

    private:
      std::vector<RadioButton*> radios;
  };

}

#endif /* RADIOGROUP_H_ */
